package com.mng.mybatistest.service.impl;

import com.mng.mybatistest.mapper.EmployeeMapper;
import com.mng.mybatistest.model.Employee;
import com.mng.mybatistest.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;
    @Override
    public Employee getEmployeeById(Long id) {
        Employee employee= employeeMapper.getEmployeeById(id);
        return employee;
    }
}
